i = input() |
print(1) |
i = int(i) |
print("How many times do you want to print the number 1?") |
for x in range(i): |
i = input() |
    print(1) |
i = int(i) |
print("How many times do you want to print the number 1?") |
for x in range(i): |
1 | print("How many times do you want to print the number 1?") |
2 | i = input() |
3 | i = int(i) |
4 | for x in range(i): |
5 |     print(1) |
for x in range(21): |
print(x) |
for x in range(21): |
    print(x) |
1 | for x in range(21): |
2 |     print(x) |
3 |      |
for x in range(20): |
print(x+1) |
for x in range(20): |
    print(x+1) |
1 | for x in range(20): |
2 |     print(x+1) |
for x in range(15): |
print(i) |
print("Enter a word") |
i = input() |
for x in range(15): |
    print(i) |
print("Enter a word") |
i = input() |
1 | print("Enter a word") |
2 | i = input() |
3 | for x in range(15): |
4 |     print(i) |
for x in range(10): |
print(x*2) |
for x in range(10): |
    print(x*2) |
1 | for x in range(10): |
2 |     print(x*2) |
for x in range(10): |
print(c) |
print("Enter an input") |
c = i[0] |
i = input() |
for x in range(10): |
    print(c) |
print("Enter an input") |
c = i[0] |
i = input() |
1 | print("Enter an input") |
2 | i = input() |
3 | c = i[0] |
4 | for x in range(10): |
5 |     print(c) |
for x in range(100): |
print(x+1) |
for x in range(100): |
    print(x+1) |
1 | for x in range(100): |
2 |     print(x+1) |
i = input() |
for x in range(4): |
print("Enter a number") |
    i = input() |
for x in range(4): |
    print("Enter a number") |
1 | for x in range(4): |
2 |     print("Enter a number") |
3 |     i = input() |
for x in range(r): |
print("a") |
import random |
r = random.randint(1,10) |
for x in range(r): |
    print("a") |
import random |
r = random.randint(1,10) |
1 | import random |
2 | r = random.randint(1,10) |
3 | for x in range(r): |
4 |     print("a") |
print("Hello") |
for x in range(20): |
    print("Hello") |
for x in range(20): |
1 | for x in range(20): |
2 |     print("Hello") |
import replit |
import time |
print(x+1) |
time.sleep(0.5) |
replit.clear() |
for x in range(10): |
import replit |
import time |
    print(x+1) |
    time.sleep(0.5) |
    replit.clear() |
for x in range(10): |
1 | import replit |
2 | import time |
3 | |
4 | for x in range(10): |
5 |     print(x+1) |
6 |     time.sleep(0.5) |
7 |     replit.clear() |
x = x + 1 |
x = x * x |
for x in range(25): |
print(x) |
    x = x + 1 |
    x = x * x |
for x in range(25): |
    print(x) |
1 | for x in range(25): |
2 |     x = x + 1 |
3 |     x = x * x |
4 |     print(x) |
print(x) |
if r == 0: |
for x in range(1000): |
r = x % 3 |
        print(x) |
    if r == 0: |
for x in range(1000): |
    r = x % 3 |
1 | for x in range(1000): |
2 |     r = x % 3 |
3 |     if r == 0: |
4 |         print(x) |
print(100 - x) |
for x in range(100): |
    print(100 - x) |
for x in range(100): |
1 | for x in range(100): |
2 |     print(100 - x) |
print(1) |
i = input() |
for x in range(l): |
l = len(i) |
print("Enter a word") |
    print(1) |
i = input() |
for x in range(l): |
l = len(i) |
print("Enter a word") |
1 | print("Enter a word") |
2 | i = input() |
3 | l = len(i) |
4 | for x in range(l): |
5 |     print(1) |
i = input() |
for x in range(l): |
print(c) |
l = len(i) |
c = i[x] |
print("Enter a word") |
i = input() |
for x in range(l): |
    print(c) |
l = len(i) |
    c = i[x] |
print("Enter a word") |
1 | print("Enter a word") |
2 | i = input() |
3 | l = len(i) |
4 | for x in range(l): |
5 |     c = i[x] |
6 |     print(c) |
c = i[a] |
print("Enter a word") |
a = l - 1 - x |
l = len(i) |
i = input() |
for x in range(l): |
print(c) |
    c = i[a] |
print("Enter a word") |
    a = l - 1 - x |
l = len(i) |
i = input() |
for x in range(l): |
    print(c) |
1 | print("Enter a word") |
2 | i = input() |
3 | l = len(i) |
4 | for x in range(l): |
5 |     a = l - 1 - x |
6 |     c = i[a] |
7 |     print(c) |
print("Enter two numbers and I will tell you all the multiples") |
print(x) |
else: |
i1 = input() |
for x in range(2,r): |
r = i2 |
if i1 > i2: |
i1 = int(i1) |
i2 = input() |
i2 = int(i2) |
r = i1 |
if i1 % x == 0 and i2 % x == 0: |
print("Enter two numbers and I will tell you all the multiples") |
        print(x) |
else: |
i1 = input() |
for x in range(2,r): |
    r = i2 |
if i1 > i2: |
i1 = int(i1) |
i2 = input() |
i2 = int(i2) |
    r = i1 |
    if i1 % x == 0 and i2 % x == 0: |
1 | print("Enter two numbers and I will tell you all the multiples") |
2 | i1 = input() |
3 | i2 = input() |
4 | i1 = int(i1) |
5 | i2 = int(i2) |
6 | if i1 > i2: |
7 |     r = i1 |
8 | else: |
9 |     r = i2 |
10 | for x in range(2,r): |
11 |     if i1 % x == 0 and i2 % x == 0: |
12 |         print(x) |
if i[x] != i[b]: |
for x in range(r): |
if palindrome == True: |
palindrome = True |
l = len(i) |
print("Palindrome number") |
r = l // 2 |
print("Not plaindrome number") |
i = input() |
b = l - 1 - x |
palindrome = False |
else: |
print("Enter a number palindrome") |
    if i[x] != i[b]: |
for x in range(r): |
if palindrome == True: |
palindrome = True |
l = len(i) |
    print("Palindrome number") |
r = l // 2 |
    print("Not plaindrome number") |
i = input() |
    b = l - 1 - x |
        palindrome = False |
else: |
print("Enter a number palindrome") |
1 | print("Enter a number palindrome") |
2 | i = input() |
3 | l = len(i) |
4 | r = l // 2 |
5 | palindrome = True |
6 | for x in range(r): |
7 |     b = l - 1 - x |
8 |     if i[x] != i[b]: |
9 |         palindrome = False |
10 | if palindrome == True: |
11 |     print("Palindrome number") |
12 | else: |
13 |     print("Not plaindrome number") |
i = input() |
b = l - x - 1 |
for x in range(l): |
print("Enter a number") |
print(i[b],end="") |
l = len(i) |
i = input() |
    b = l - x - 1 |
for x in range(l): |
print("Enter a number") |
    print(i[b],end="") |
l = len(i) |
1 | print("Enter a number") |
2 | i = input() |
3 | l = len(i) |
4 | for x in range(l): |
5 |     b = l - x - 1 |
6 |     print(i[b],end="") |
import time |
l = len(sentence) |
sentence = "hello this is a sentence" |
for x in range(l): |
time.sleep(0.1) |
print(sentence[x],end="",flush=True) |
import time |
l = len(sentence) |
sentence = "hello this is a sentence" |
for x in range(l): |
    time.sleep(0.1) |
    print(sentence[x],end="",flush=True) |
1 | import time |
2 | sentence = "hello this is a sentence" |
3 | l = len(sentence) |
4 | for x in range(l): |
5 |     print(sentence[x],end="",flush=True) |
6 |     time.sleep(0.1) |
for x in range(len(s)): |
print(c, end="") |
print("Enter a sentence") |
else: |
c = s[x] |
s = input() |
if x % 2 == 0: |
c = c.upper() |
c = c.lower() |
for x in range(len(s)): |
    print(c, end="") |
print("Enter a sentence") |
    else: |
    c = s[x] |
s = input() |
    if x % 2 == 0: |
        c = c.upper() |
        c = c.lower() |
1 | print("Enter a sentence") |
2 | s = input() |
3 | for x in range(len(s)): |
4 |     c = s[x] |
5 |     if x % 2 == 0: |
6 |         c = c.upper() |
7 |     else: |
8 |         c = c.lower() |
9 |     print(c, end="") |
10 |
else: |
if t % 2 == 0: |
c = c.upper() |
c = s[x] |
print("Enter a sentence") |
print(c, end="") |
s = input() |
t = t + 1 |
for x in range(len(s)): |
if c != " ": |
t = 0 |
c = c .lower() |
        else: |
        if t % 2 == 0: |
            c = c.upper() |
    c = s[x] |
print("Enter a sentence") |
    print(c, end="") |
s = input() |
        t = t + 1 |
for x in range(len(s)): |
    if c != " ": |
t = 0 |
            c = c .lower() |
1 | print("Enter a sentence") |
2 | t = 0 |
3 | s = input() |
4 | for x in range(len(s)): |
5 |     c = s[x] |
6 |     if c != " ": |
7 |         if t % 2 == 0: |
8 |             c = c.upper() |
9 |         else: |
10 |             c = c .lower() |
11 |         t = t + 1 |
12 |     print(c, end="") |